package com.sam.query.mould.simple.domain;

import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * Project entity.
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "Project", uniqueConstraints = @UniqueConstraint(columnNames = "associatedID"))
public class Project implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 1L;
	private String id;
	private String projectName;
	private String industryClassId;
	private String manufactureClassId;
	private String customerId;
	private String contactPersonId;
	private String projectAdderId;
	private Date startTime;
	private String projectState;
	private String t1time;
	private String mark;
	private Integer workflowInsExecuteId;
	private String checkRemark;
	private Integer sequenceNo;
	private Date projectFinishTime;
	private Integer priority;
	private String color;
	private Short shape;
	private String executorId;
	private Date deliveryDate;
	private Date computeFinishDate;
	private String projectInteriorId;
	private String projectClientId;
	private String pmstate;
	private String userField1;
	private String userField2;
	private String userField3;
	private String userField4;
	private String userField5;
	private String userField6;
	private String userField7;
	private String userField8;
	private String userField9;
	private String userField10;
	private String associatedId;
	private Short isAuditing;

	private List<Product> list;

	// Constructors

	/** default constructor */
	public Project() {
	}

	// Property accessors
	@Id
	@Column(name = "projectID", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "projectName", nullable = false, length = 50)
	public String getProjectName() {
		return this.projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@Column(name = "industryClassID", length = 50)
	public String getIndustryClassId() {
		return this.industryClassId;
	}

	public void setIndustryClassId(String industryClassId) {
		this.industryClassId = industryClassId;
	}

	@Column(name = "manufactureClassID", length = 50)
	public String getManufactureClassId() {
		return this.manufactureClassId;
	}

	public void setManufactureClassId(String manufactureClassId) {
		this.manufactureClassId = manufactureClassId;
	}

	@Column(name = "customerID", length = 50)
	public String getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	@Column(name = "contactPersonID", length = 50)
	public String getContactPersonId() {
		return this.contactPersonId;
	}

	public void setContactPersonId(String contactPersonId) {
		this.contactPersonId = contactPersonId;
	}

	@Column(name = "projectAdderID", length = 50)
	public String getProjectAdderId() {
		return this.projectAdderId;
	}

	public void setProjectAdderId(String projectAdderId) {
		this.projectAdderId = projectAdderId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "startTime", length = 23)
	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Column(name = "projectState", length = 50)
	public String getProjectState() {
		return this.projectState;
	}

	public void setProjectState(String projectState) {
		this.projectState = projectState;
	}

	@Column(name = "T1Time", length = 50)
	public String getT1time() {
		return this.t1time;
	}

	public void setT1time(String t1time) {
		this.t1time = t1time;
	}

	@Column(name = "mark", nullable = false, length = 10)
	public String getMark() {
		return this.mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	@Column(name = "workflowInsExecuteID")
	public Integer getWorkflowInsExecuteId() {
		return this.workflowInsExecuteId;
	}

	public void setWorkflowInsExecuteId(Integer workflowInsExecuteId) {
		this.workflowInsExecuteId = workflowInsExecuteId;
	}

	@Column(name = "checkRemark", length = 100)
	public String getCheckRemark() {
		return this.checkRemark;
	}

	public void setCheckRemark(String checkRemark) {
		this.checkRemark = checkRemark;
	}

	@Column(name = "sequenceNo")
	public Integer getSequenceNo() {
		return this.sequenceNo;
	}

	public void setSequenceNo(Integer sequenceNo) {
		this.sequenceNo = sequenceNo;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "projectFinishTime", length = 23)
	public Date getProjectFinishTime() {
		return this.projectFinishTime;
	}

	public void setProjectFinishTime(Date projectFinishTime) {
		this.projectFinishTime = projectFinishTime;
	}

	@Column(name = "priority")
	public Integer getPriority() {
		return this.priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	@Column(name = "color", length = 20)
	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	@Column(name = "shape")
	public Short getShape() {
		return this.shape;
	}

	public void setShape(Short shape) {
		this.shape = shape;
	}

	@Column(name = "executorID", length = 50)
	public String getExecutorId() {
		return this.executorId;
	}

	public void setExecutorId(String executorId) {
		this.executorId = executorId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "deliveryDate", length = 23)
	public Date getDeliveryDate() {
		return this.deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "computeFinishDate", length = 23)
	public Date getComputeFinishDate() {
		return this.computeFinishDate;
	}

	public void setComputeFinishDate(Date computeFinishDate) {
		this.computeFinishDate = computeFinishDate;
	}

	@Column(name = "projectInteriorID", nullable = false, length = 50)
	public String getProjectInteriorId() {
		return this.projectInteriorId;
	}

	public void setProjectInteriorId(String projectInteriorId) {
		this.projectInteriorId = projectInteriorId;
	}

	@Column(name = "projectClientID", length = 50)
	public String getProjectClientId() {
		return this.projectClientId;
	}

	public void setProjectClientId(String projectClientId) {
		this.projectClientId = projectClientId;
	}

	@Column(name = "PMState", length = 50)
	public String getPmstate() {
		return this.pmstate;
	}

	public void setPmstate(String pmstate) {
		this.pmstate = pmstate;
	}

	@Column(name = "userField1", length = 50)
	public String getUserField1() {
		return this.userField1;
	}

	public void setUserField1(String userField1) {
		this.userField1 = userField1;
	}

	@Column(name = "userField2", length = 50)
	public String getUserField2() {
		return this.userField2;
	}

	public void setUserField2(String userField2) {
		this.userField2 = userField2;
	}

	@Column(name = "userField3", length = 50)
	public String getUserField3() {
		return this.userField3;
	}

	public void setUserField3(String userField3) {
		this.userField3 = userField3;
	}

	@Column(name = "userField4", length = 50)
	public String getUserField4() {
		return this.userField4;
	}

	public void setUserField4(String userField4) {
		this.userField4 = userField4;
	}

	@Column(name = "userField5", length = 50)
	public String getUserField5() {
		return this.userField5;
	}

	public void setUserField5(String userField5) {
		this.userField5 = userField5;
	}

	@Column(name = "userField6", length = 50)
	public String getUserField6() {
		return this.userField6;
	}

	public void setUserField6(String userField6) {
		this.userField6 = userField6;
	}

	@Column(name = "userField7", length = 50)
	public String getUserField7() {
		return this.userField7;
	}

	public void setUserField7(String userField7) {
		this.userField7 = userField7;
	}

	@Column(name = "userField8", length = 50)
	public String getUserField8() {
		return this.userField8;
	}

	public void setUserField8(String userField8) {
		this.userField8 = userField8;
	}

	@Column(name = "userField9", length = 50)
	public String getUserField9() {
		return this.userField9;
	}

	public void setUserField9(String userField9) {
		this.userField9 = userField9;
	}

	@Column(name = "userField10", length = 50)
	public String getUserField10() {
		return this.userField10;
	}

	public void setUserField10(String userField10) {
		this.userField10 = userField10;
	}

	@Column(name = "associatedID", unique = true, nullable = false, length = 100)
	public String getAssociatedId() {
		return this.associatedId;
	}

	public void setAssociatedId(String associatedId) {
		this.associatedId = associatedId;
	}

	@Column(name = "isAuditing", nullable = false)
	public Short getIsAuditing() {
		return this.isAuditing;
	}

	public void setIsAuditing(Short isAuditing) {
		this.isAuditing = isAuditing;
	}

	@OneToMany(cascade = CascadeType.ALL, mappedBy = "project")
	public List<Product> getList() {
		return list;
	}

	public void setList(List<Product> list) {
		this.list = list;
	}

}